package cn.eeany.zutools.index.event

import cn.eeany.zutools.index.event.domain.FileDomain
import cn.eeany.zutools.index.service.impl.FileService
import com.google.common.eventbus.Subscribe


class EventBusNewFile {


    @Subscribe
    void recordCustomerChange(FileDomain e) {
        FileService fileService = new FileService()

        if (e?.file?.getName()?.endsWith(".java")) {
            println fileService.readFile(e.getFile())
        }


    }
}
